#!/bin/bash
sudo -S echo "begin test" << EOF
Zgdky@guest123
EOF

ret=$(sudo fdisk /dev/mmcblk2 << EOF
m
EOF
)
echo $?
echo $ret
ret=$(sudo fdisk /dev/mmcblk2 << EOF
F
EOF
)
echo $?
echo $ret
